package chalmers.game.subterranean.model.world.squares.blocks.actionblocks;

import chalmers.game.subterranean.event.Bus;
import chalmers.game.subterranean.event.events.world.shopevents.OpenShopEvent;
import chalmers.game.subterranean.util.Resource;
import chalmers.game.subterranean.util.BlockProperties;
import chalmers.game.subterranean.util.BlockType;
import org.apache.log4j.Logger;

/**
 * Dummy class for now
 * 
 * @author TH
 */
public class Shop extends ActionBlock {
  private static final BlockType type = new BlockType(BlockType.Action.SHOP);
  private static final Logger logger = Logger.getLogger("subLog"); // TODO Remove.

  public Shop() {
    super.durability = BlockProperties.LADDER_DURABILITY;
  }

  @Override
  public Resource getResource() {
    return Resource.NOTHING;
  }

  @Override
  public void handleAction() {
    Bus.INSTANCE.post(new OpenShopEvent());
    logger.info("OPEN SHOP!!"); // TODO remove this later :D
  }

  @Override
  public BlockType handleGetType() {
    return type;
  }
}
